<template>
  <view :style="{ paddingTop: topHeight + 'px' }">
    <layout-page>
      <template #header>
        <layout-header color="blue" title="自定义"></layout-header>
      </template>

      <layout-detail></layout-detail>
      <layout-picker></layout-picker>
    </layout-page>
  </view>
</template>

<script>
export default {
  data() {
    return {
      topHeight: "",
    };
  },
  onLoad() {
    // console.log("进入页面了");
    //mixin函数获取头部总高度
    const { topHeight } = this.headerHeight();
    this.topHeight = topHeight;
    console.log(this.topHeight);
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
</style>
